import request from "@/utils/request";

//查询全部的部门信息
export const queryDept = () => {return request.get('/depts');};
//添加部门信息
export const addDept = (dept) => {return request.post('/depts',dept);};
//根据id查询部门信息
export const editDept = (id) => {return request.get(`/depts/${id}`);};
//修改部门信息
export const updateDept = (dept) => {return request.put('/depts',dept);};
//根据id删除部门信息
export const deleteByIdDept = (id) => {return request.delete(`depts?id=${id}`);};